package com.study.springservlet.controller;

import com.study.springservlet.service.HelloService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @Description :
 * @Author : guxuemin
 * @Version : V1.0.0
 * @Date : 2022/9/23 11:06
 */
@Controller
public class HelloController {

    @Resource
    private HelloService helloService;

    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        return helloService.hello();
    }

    @RequestMapping("/suc")
    public String success() {
        return "success";
    }
}
